package legumes.client.evt.customer;

import legumes.shared.domain.Store;

import com.google.gwt.event.shared.GwtEvent;

public class CustomerStoreSelectionChangedEvent extends GwtEvent<CustomerStoreSelectionChangedEventHandler> {

	public static Type<CustomerStoreSelectionChangedEventHandler> TYPE = new Type<CustomerStoreSelectionChangedEventHandler>();
	
	private Store store;
	
	public CustomerStoreSelectionChangedEvent(Store store_) {
		store = store_;
	}
	
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<CustomerStoreSelectionChangedEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(CustomerStoreSelectionChangedEventHandler handler) {
		handler.onStoreSelectionChanged(this);
	}

	public Store getStore() {
		return store;
	}


}
